import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/outpatient-report',
      name: 'outpatient-report',
      component: () => import('../views/OutpatientReport.vue'),
    },
    {
      path: '/waiting-query',
      name: 'waiting-query',
      component: () => import('../views/WaitingQuery.vue'),
    },
    {
      path: '/self-service-order',
      name: 'self-service-order',
      component: () => import('../views/SelfServiceOrder.vue'),
    },
    {
      path: '/medical-appointment',
      name: 'medical-appointment',
      component: () => import('../views/MedicalAppointment.vue'),
    },
    {
      path: '/follow-up',
      name: 'follow-up',
      component: () => import('../views/FollowUp.vue'),
    },
    {
      path: '/self-service-number',
      name: 'self-service-number',
      component: () => import('../views/SelfServiceNumber.vue'),
    },
    {
      path: '/outpatient-guide',
      name: 'outpatient-guide',
      component: () => import('../views/OutpatientGuide.vue'),
    },
    {
      path: '/electronic-invoice',
      name: 'electronic-invoice',
      component: () => import('../views/ElectronicInvoice.vue'),
    },
    {
      path: '/health-column',
      name: 'health-column',
      component: () => import('../views/Health/HealthColumn.vue'),
    },
    {
      path: '/health-detail/:id',
      name: 'health-detail',
      component: () => import('../views/Health/DataDetails.vue'),
    },
    {
      path: '/create-order',
      name: 'create-order',
      component: () => import('../views/Createorder/Home.vue'),
    },
    {
      path: '/create-order/campus',
      name: 'create-order-campus',
      component: () => import('../views/Createorder/Campus.vue'),
    },
  ],
})

export default router
